<script type="text/javascript">
  $(function(){
    $('.fileinput').fileinput();
  });
</script>
<div class="page dashboard">
	<div class="container">
		<div class="row">
				<ul class="span3 nav nav-list menu-sidebar">
					<div style="margin-bottom:10px;" >Selamat Datang, <?php echo anchor(site_url('admin/dashboard'), $this->session->userdata('username')); ?></div>
					<li class=""><?php echo anchor(site_url('admin/profil/form_update_user/'.$this->session->userdata('user_id')),'Edit Profil');?></li>
					<li class=""><?php echo anchor(site_url('admin/listing'),'Kelola Listing');?></li>
					<?php if($this->session->userdata('level') == 1){ ?>
					<li class=""><?php echo anchor(site_url('admin/profil'),'Kelola User');?></li>
					<li class=""><?php echo anchor(site_url('admin/artikel'),'Kelola Artikel');?></li>
					<li class=""><?php echo anchor('http://localhost/artyproperty/editor/properti_baru.php','Kelola Properti Baru');?></li>
					<?php } ?>
				</ul>
			
			<div class="span9 detail-profil">
				<div class="row" style="margin-top:20px;"><div class="span12">
				<form name="go" enctype="multipart/form-data" method="POST" action="<?php echo site_url().'/admin/profil/changeAvatar/';?>">  
              
              <div class="row">
              <div class="span2">Nama</div>
              <div class="span4"><strong><?php echo $output['user']['nama_depan'];?></strong></div>
              <input type="hidden" name="name" value="<?php echo $output['user']['username'];?>"/>
              </div>
              <!-- <div class="row">
              <div class="span2">Password</div>   
              <div class="span4"><input class="span3" type="password" name="password" value="" placeholder="password"/></div>
              </div> -->
              <div class="row">
              <div class="span2">Avatar</div>
              <div class="span4"><input type="file" name="avatar"/></div>
              <input type="hidden" name="userId" value="<?php echo $output['user']['id'];?>"/>
              </div>
              <?php //echo $output['id'];?>
              <div class="row">
              <div class="span6">
              <input type="submit" class="btn btn-primary btn-large span3 offset6" value="UBAH AVATAR"/>
          </div></div>
          </form></div></div>
			</div>
		</div>
	</div>
</div>